package com.xuelang.pipeline.infrastructure.pipeline.converter;

import com.xuelang.pipeline.domain.pipeline.PipelineGroup;
import com.xuelang.pipeline.infrastructure.pipeline.dataobject.PipelineGroupDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 流水线分组实体与流水线分组DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface PipelineGroupToPipelineGroupDOConverter {

    PipelineGroupToPipelineGroupDOConverter INSTANCE = Mappers.getMapper(PipelineGroupToPipelineGroupDOConverter.class);

    /**
     * PipelineGroup转化为PipelineGroupDO
     * @param pipelineGroup
     * @return
     */
    PipelineGroupDO pipelineGroupToPipelineGroupDO(PipelineGroup pipelineGroup);

    /**
     * PipelineGroupDO转化为PipelineGroup
     * @param pipelineGroupDO
     * @return
     */
    PipelineGroup pipelineGroupDOToPipelineGroup(PipelineGroupDO pipelineGroupDO);

}
